<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

require '../com.swiss.mooh.dao.impl/UserDaoImpl.php';
require '../com.swiss.mooh.service/UserServiceImpl.php';

$dispatcher = new UserDaoImpl();
$userService = new UserService($dispatcher);

$newPassword = $_POST['newPassword'];

$resultUpdate = $userService->verifyAndGetPassword(md5($newPassword));

echo $resultUpdate;
